package com.secsbrain.development.remote;

import com.secsbrain.common.ResponseResult;
import com.secsbrain.sso.model.dto.system.RoleDTO;
import com.secsbrain.sso.model.dto.system.UserDTO;
import com.secsbrain.sso.model.dto.system.UserDetailDTO;
import com.secsbrain.sso.model.dto.system.UserSimpleDTO;

import java.util.List;

/**
 * sso相关服务
 *
 * @author zhaoyi
 */
public interface SsoRemoteService {

	ResponseResult<List<UserDetailDTO>> getUserDTOByRoleCode(String roleCode);

	ResponseResult<UserDTO> getUserDTO(Long userId);

	ResponseResult<List<UserDetailDTO>> getRoleDTOsByUserId(String appCode, Long[] userIds);

	ResponseResult<List<UserDetailDTO>> getUserDTOByIds(Long[] userIds);

	ResponseResult<List<UserSimpleDTO>> getDevelopers();

	ResponseResult<List<RoleDTO>> getRoleListByUserId(String appCode, Long userId);


}
